//发送异步请求，与服务器进行交换
import request from "../untils/request";

//分页查询班级
export const queryClassApi = (name,begin,end,page,pageSize)=>
    request.get(`/clazzs?name=${name}&begin=${begin}&end=${end}&page=${page}&pageSize=${pageSize}`);

//添加班级
export const addClazzApi = (clazz)=> request.post(`/clazzs`,clazz);

//查询回显，根据Id先查询
export const queryByIdApi = (id) => request.get(`/clazzs/${id}`)

//修改班级信息
export const updateClazzApi = (clazz) => request.put(`/clazzs`,clazz);

//删除班级
export const deleteClazzApi = (id) => request.delete(`clazzs/${id}`)
